<?php
/* @var $this ThongBaoMoiThauController */
/* @var $model FormThongBaoMoiThau */
/* @var $form CActiveForm */
$this->breadcrumbs = array(
    'Thông báo mời thầu' => array('index'),
    'Tạo',
);
?>

<h1>Tạo thông báo mời thầu</h1>

<div class="form">

    <?php $form = $this->beginWidget('CActiveForm', array(
        'id' => 'form-thong-bao-moi-thau-form',
        'enableAjaxValidation' => false,
    )); ?>
    <?php echo $form->errorSummary($model); ?>
    <div class="row">
        <?php echo $form->labelEx($model, 'ten_goi_thau'); ?>
        <?php echo $form->textArea($model, 'ten_goi_thau', array('row' => 5)); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'nganh'); ?>
        <?php echo $form->dropDownList($model, 'nganh', CHtml::listData(DanhSachNganh::model()->findAll(), 'id', 'value')); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'linh_vuc'); ?>
        <?php echo $form->dropDownList($model, 'linh_vuc', CHtml::listData(DanhSachLinhVuc::model()->findAll(), 'id', 'value')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'dia_diem'); ?>
        <?php echo $form->textField($model, 'dia_diem', array('size' => 60, 'maxlength' => 250)); ?>
        <?php echo $form->error($model, 'dia_diem'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'ten_du_an'); ?>
        <?php echo $form->textArea($model, 'ten_du_an', array('size' => 60, 'maxlength' => 250)); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'nguon_von'); ?>
        <?php echo $form->radioButtonList($model, 'nguon_von', array('Không xác định' => 'Không xác định', 'Trong nước' => 'Trong nước', 'Nước ngoài' => 'Nước ngoài'), array('separator' => '  ', 'labelOptions' => array('style' => 'display:inline;'))); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'ben_moi_thau'); ?>
        <?php echo $form->textArea($model, 'ben_moi_thau', array('size' => 60, 'maxlength' => 250, 'row' => 5)); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'hinh_thuc'); ?>
        <?php echo $form->dropDownList($model, 'hinh_thuc', CHtml::listData(HinhThucDauThau::model()->findAll(), 'id', 'value')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'thoi_gian_bat_dau'); ?>
        <?php echo $form->textField($model, 'thoi_gian_bat_dau', array('class' => 'datetimepicker')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'thoi_gian_ket_thuc'); ?>
        <?php echo $form->textField($model, 'thoi_gian_ket_thuc', array('class' => 'datetimepicker')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'dia_diem_ban'); ?>
        <?php echo $form->textArea($model, 'dia_diem_ban', array('size' => 60, 'maxlength' => 250)); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'gia_ban'); ?>
        <?php echo $form->numberField($model, 'gia_ban', array('size' => 10, 'maxlength' => 10)); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'thoi_gian_dong_thau'); ?>
        <?php echo $form->textField($model, 'thoi_gian_dong_thau', array('class' => 'datepicker')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'ngay_xuat_ban'); ?>
        <?php echo $form->textField($model, 'ngay_xuat_ban', array('class' => 'datepicker')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'so_bao_dang'); ?>
        <?php echo $form->textField($model, 'so_bao_dang', array('size' => 60, 'maxlength' => 150)); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'tinh_trang_tong_tin'); ?>
        <?php echo $form->textField($model, 'tinh_trang_tong_tin', array('size' => 60, 'maxlength' => 250)); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'ma_thong_tin'); ?>
        <?php echo $form->textField($model, 'ma_thong_tin', array('size' => 60, 'maxlength' => 150)); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'thong_tin_chuyen_tien'); ?>
        <?php echo $form->radioButtonList($model, 'thong_tin_chuyen_tien', array('Chưa thanh toán' => 'Chưa thanh toán', 'Đã thanh toán' => 'Đã thanh toán', 'Miễn phí' => 'Miễn phí'), array('separator' => '  ', 'labelOptions' => array('style' => 'display:inline;'))); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'thong_tin_khac'); ?>
        <?php echo $form->textField($model, 'thong_tin_khac', array('size' => 60, 'maxlength' => 250)); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
    </div>

    <?php $this->endWidget(); ?>

</div>